package com.dayuanit.dy8.model.Single;

public class Pig {

    private static Pig pig;

    private Pig() {

    }

    public static synchronized Pig createPig() {
        if (pig == null) {
            pig = new Pig();
        }
        return pig;
    }

    public static  Pig createPig2() {
        synchronized (Pig.class) {
            if (pig == null) {
                pig = new Pig();
            }
            return pig;
        }

    }
}
